package com.zhouyu;

import com.zhouyu.mini.spring.ZhouyuApplicationContext;
import com.zhouyu.service.UserInterface;
import com.zhouyu.service.UserService;

/**
*@author: fjl
*@date: 2025-09-09
*@description: 启动类
*/
public class MyApplication {

    public static void main(String[] args) {
        ZhouyuApplicationContext applicationContext = new ZhouyuApplicationContext(MyConfig.class);
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
    }
}
